package com.honda.util.core;

import java.util.Date;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;
import org.springframework.web.context.request.WebRequest;


/**
 * 
 * 
 * @ClassName:  BindingInitializer   
 * @Description:(springmvc时间绑定)   
 * @author: shikong
 * @date:   2018年7月10日 上午9:10:57      
 * @Copyright: 2018
 */
public class BindingInitializer implements WebBindingInitializer {
	
	public void initBinder(WebDataBinder binder, WebRequest request) {
		binder.registerCustomEditor(Date.class, new DateTypeEditor());
	}
}

